Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Stores.​DefaultGrantStore<​T>
Assembly: Duende.IdentityServer
Inheritance: object → DefaultGrantStore
Base class for persisting grants using the IPersistedGrantStore.
Fields and Constants
protected const
string
HexEncodingFormatSuffix
The suffix added to keys to indicate that hex encoding should be used.
Properties
protected
string
GrantType
The grant type being stored.
Logger
The logger.
protected
IPersistedGrantStore
Store
The PersistedGrantStore.
protected
IPersistentGrantSerializer
Serializer
The PersistentGrantSerializer;
HandleGenerationService
The HandleGenerationService.
Methods
protected
System.​Threading.​Tasks.​Task<​string>
CreateHandleAsync​(System.​Threading.​CancellationToken ct)
Creates a handle.
protected
string
GetHashedKey​(string value)
Gets the hashed key.
value
The value.
protected
System.​Threading.​Tasks.​Task<​T>
GetItemAsync​(string key,
System.​Threading.​CancellationToken ct)
Gets the item.
key
The key.
ct
The cancellation token.
protected
System.​Threading.​Tasks.​Task<​T>
GetItemByHashedKeyAsync​(string hashedKey,
System.​Threading.​CancellationToken ct)
Gets the item by the hashed key.
ct
The cancellation token.
protected
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​IEnumerable<​T>>
GetAllAsync​(PersistedGrantFilter filter,
System.​Threading.​CancellationToken ct)
Gets the items.
filter
The filter.
ct
The cancellation token.
protected
System.​Threading.​Tasks.​Task<​string>
CreateItemAsync​(T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
int lifetime,
System.​Threading.​CancellationToken ct)
Creates the item.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created.
lifetime
The lifetime.
ct
The cancellation token.
StoreItemAsync​(string key,
T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
System.​DateTime? expiration,
System.​Threading.​CancellationToken ct,
System.​DateTime? consumedTime = null)
Stores the item.
key
The key.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created time.
expiration
The expiration.
ct
The cancellation token.
consumedTime
The consumed time.
StoreItemByHashedKeyAsync​(string hashedKey,
T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
System.​DateTime? expiration,
System.​Threading.​CancellationToken ct,
System.​DateTime? consumedTime = null)
Stores the item.
hashedKey
The key.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created time.
expiration
The expiration.
ct
The cancellation token.
consumedTime
The consumed time.
RemoveItemAsync​(string key,
System.​Threading.​CancellationToken ct)
Removes the item.
key
The key.
ct
The cancellation token.
RemoveItemByHashedKeyAsync​(string key,
System.​Threading.​CancellationToken ct)
Removes the item.
key
The key.
ct
The cancellation token.
RemoveAllAsync​(string subjectId,
string clientId,
System.​Threading.​CancellationToken ct,
string sessionId = null)
Removes all items for a subject id / client id combination.
subjectId
The subject identifier.
clientId
The client identifier.
ct
The cancellation token.
sessionId
The optional session identifier.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object